<?php
/**
 * Created by PhpStorm.
 * User: Duyonggao
 * Date: 2017/9/7 0007
 * Time: 上午 10:22
 */
use utils\Comm;
use yii\helpers\Url;
?>
<div class="col-md-3 quan_check" data-gid="<?=$good['goods_id']?>" data-sid="<?=$good['seller_id']?>" data-aid="<?=$good['coupon_id']?>">
    <em class="border_l_b border"></em>
    <em class="border_l_t border"></em>
    <em class="border_r_b border"></em>
    <em class="border_r_t border"></em>
    <span class="badge" style="position: absolute;right: 25px;top:10px;background-color: #f54545"><?=$index?></span>
    <a href="<?=Url::to(['site/jump','url'=>Comm::J('https://detail.tmall.com/item.htm?id='.$good['goods_id'])])?>" onclick="Item.openNewWind(this.href);return false;" target="_blank" rel="nofollow">
        <img class="img-thumbnail lazy"
             src="/img/default.jpg"
             data-old="<?=$good['goods_pic']?>"
             data-img="<?=Comm::minPic($good['goods_pic'])?>">
    </a>
    <table class="table table-striped table-bordered">
        <tbody>
        <tr>
            <td colspan="2">
                <p style="height: 20px;overflow: hidden; margin: 0;">
                    <a href="<?=Url::to(['site/jump','url'=>Comm::J('https://detail.tmall.com/item.htm?id='.$good['goods_id'])])?>" onclick="Item.openNewWind(this.href);return false;" target="_blank" rel="nofollow">
                        <?=$good['goods_short_title']?>
                    </a>
                </p>
            </td>
        </tr>
        <tr>
            <td>使用券后价格</td>
            <td class="price">¥<span><?=floatval($good['goods_price'] - $good['coupon_price'])?></span></td>
        </tr>
        <tr>
            <td class="txt"><a href="<?=Comm::Jump($good['goods_id'],$good['coupon_id'],$good['goods_pic'],$good['goods_title'])?>" data-loading-text="领券中..."  onclick="Item.detail(this);return false;" rel="nofollow" >领取优惠券</a></td>
            <td class="y-btn"><a href="<?=Comm::Jump($good['goods_id'],$good['coupon_id'],$good['goods_pic'],$good['goods_title'])?>" data-loading-text="领券中..."  onclick="Item.detail(this);return false;"  rel="nofollow" >¥<span><?=floatval($good['coupon_price'])?></span></a></td>
        </tbody>
    </table>
</div>


